-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fix(autocomplete): scroll to top of the list each time dropdown open #11578
Conversation
Splaktar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please try to reproduce this issue in a test and provide the test in this PR?
|
@marosoft can you please rebase this? |
22afd97 to
662719f
Compare
@Splaktar I just rebased and refactored my fix. Sorry for a delay here. CodePen - demo of both modes (copied from the official docs - autocomplete demo) including my latest fix. |
662719f to
33a0668
Compare
33a0668 to
8fbc895
Compare
|
@Splaktar I added a test for it. Please let me know if it looks fine. |
Splaktar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the minor test name tweak, this looks great, thank you!
At the moment the drop down stays at the same position. Fixes angular#10479
8fbc895 to
58fd670
Compare
mmalerba
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
At the moment the drop down stays at the same position.
Fixes #10479
PR Checklist
Please check that your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
After reopening the drop down of the autocomplete the scroll starts from the same position when it was closed.
Issue Number: #10479
What is the new behavior?
After reopening the drop down the scroll starts from the top.
Does this PR introduce a breaking change?
Other information